// Language pack
const messages = {
  EN: {
    mainView: {
      config: "Settings",
      pwd: "Password",
      app: "Mini Program Code",//Blocking mini-program codes
      success: "Access Granted",
      fail: "Access Denied",
      passwordDisabled: "Password Access Disabled",
    },
    idleView: {
      week: {
        0: "Sun",
        1: "Mon",
        2: "Tue",
        3: "Wed",
        4: "Thu",
        5: "Fri",
        6: "Sat",
      },
    },
    appView: {
      knowed: "Got it",
      appQrcodeLbl: "Manage with Mini Program",
    },
    pwdView: {
      title: "Password Access",
      pwd: "Enter Password",
      pwdAccess: "Confirm",
      success: "Access Granted",
      fail: "Access Denied",
    },
    newPwdView: {
      title: "Set Admin Password",
      pwdAccess: "Confirm",
      pwd: "Enter Password",
      confirmPwd: "Confirm Password",
      pwdAccess: "Confirm",
      tip: "Note: Password must be at least 8 characters long. Default password will be used if skipped.",
      skip: "Skip for Now",
      success: "Password Set Successfully",
      fail: "Failed to Set Password",
      pwdNotMatch: "Passwords Don't Match",
    },
    identityVerificationView: {
      title: "Identity Verification",
      pwd: "Enter Admin Password",
      pwdAccess: "Confirm",
      success: "Face Verification Successful",
      fail: "Face Verification Failed",
      pwdLog: "Password Login",
      faceLog: "Face Login",
      pwdFail: "Wrong Password",
    },
    configView: {
      title: "Settings",
      localUser: "Local Users",
      networkSetting: "Network",
      doorControl: "Access Control",
      systemSetting: "System",
      deviceInfo: "Device Info",
      recordQuery: "Access Logs",
      voiceBroadcast: "Voice Settings",
      cloudCert: "Cloud Certificate",
      factoryTest: "Factory Test",
      help: "Help",
      confirmExit: "Exit Settings",
      confirmExitContent: "Are you sure you want to exit Settings?",
    },
    cloudCertView: {
      title: "Cloud Certificate",
      cloudCertActive: "Activate Certificate",
      inputKey: "Enter Key",
      key: "Key",
      tip: "Note: Activate using key or QR code scan. Contact support for details.",
      save: "Save",
    },
    doorControlView: {
      title: "Access Control",
      save: "Save",
      openDoorRelayDelay: "Door Release Delay",
      antiTamperAlarm: "Tamper Alarm",
      input: "Enter",
      success: "Saved",
      fail: "Save Failed",
      mqttAddr: "MQTT Server",
      mqttUser: "MQTT Username",
      mqttPwd: "MQTT Password",
      onlineChecking: "Online Verification",
      onlineCheckingTimeout: "Verification Timeout",
      ms: "ms"
    },
    helpView: {
      title: "Help",
      scanCode: "Scan for Tutorial",
    },
    networkSettingView: {
      title: "Network",
      type: "Connection Type",
      ip: "IP Address",
      dhcp: "DHCP",
      mask: "Subnet Mask",
      gateway: "Gateway",
      dns: "Primary DNS",
      dns2: "Secondary DNS",
      mac: "MAC Address",
      status: "Status",
      save: "Save",
      input: "Enter",
      ethernet: "Ethernet",
      wifi: "Wi-Fi",
      _4G: "4G",
      networkUnconnected: "Disconnected",
      networkConnected: "Connected",
      wifiName: "Network Name",
      wifiPwd: "Password",
      wifiList: "Available Networks",
      close: "Close",
      confirm: "Confirm",
      fail: "Save Failed",
      success: "Saved",
    },
    systemSettingView: {
      title: "System Settings",
      displaySetting: "Display",
      faceRecognitionSetting: "Face Recognition",
      swipeCardRecognitionSetting: "Card Access",
      passLogSetting: "Access Logs",
      passwordOpenDoorSetting: "Password Access",
      passwordManagement: "Password Management",
      timeSetting: "Date & Time",
      restartDevice: "Restart",
      restoreDefaultConfig: "Reset to Default",
      resetDevice: "Factory Reset",
      restart: "Restart",
      restoreDefault: "Reset",
      reset: "Reset",
      autoAdjustScreenBrightness: "Auto Brightness",
      screenBrightness: "Brightness",
      autoTurnOffScreen: "Auto Screen Off",
      autoTurnOffScreenTime: "Screen Off Timer",
      autoScreenSaver: "Screen Saver",
      autoScreenSaverTime: "Screen Saver Timer",
      displayIp: "Show IP Address",
      displayDeviceSn: "Show Device SN",
      language: "Language",
      displayCode: "Show Program Code",
      themeMode: "Work Theme",
      save: "Save",
      input: "Enter",
      faceSimilarityThreshold: "Face Match Threshold",
      livenessDetectionFunction: "Liveness Detection",
      livenessDetectionThreshold: "Liveness Threshold",
      infraredImageDisplay: "IR Display",
      maskRecognition: "Mask Detection",
      maskRecognitionThreshold: "Mask Detection Threshold",
      recognitionDistance: "Detection Range",
      imageSaveType: "Image Storage Type",
      saveStrangerImage: "Save Stranger Photos",
      fullView: "Full View",
      face: "Face Only",
      swipeCardRecognition: "Card Verification",
      passwordOpenDoor: "Password Access",
      inputOriginalPassword: "Enter Current Password",
      inputNewPassword: "Enter New Password",
      inputRepeatNewPassword: "Confirm New Password",
      syncMode: "Time Zone",
      ntpAddress: "NTP Server",
      timeSyncSuccess: "Time Synced Successfully",
      success: "Saved",
      fail: "Failed",
      confirmation: "Confirm",
      confirmRestart: "Confirm Restart?",
      confirmRecoveryConfiguration: "Reset to Default Settings?",
      confirmReset: "Confirm Factory Reset?",
      min: "min"
    },
    deviceInfoView: {
      title: "Device Info",
      systemInfo: "System Info",
      dataCapacityInfo: "Storage Info",
      deviceQrCode: "Device QR Code",
      miniProgramCode: "Mini Program Code",
      deviceSN: "Serial Number",
      firmwareVersion: "Firmware Version",
      firmwareReleaseDate: "Release Date",
      deviceTotalSpace: "Total Storage",
      deviceUsedSpace: "Used Storage",
      deviceRemainingSpace: "Available Storage",
      registeredPersonNum: "Registered Users",
      localFaceWhiteListNum: "Face Whitelist Count",
      localPasswordWhiteListNum: "Password Whitelist Count",
      localSwipeCardWhiteListNum: "Card Whitelist Count",
      passLogTotalNum: "Total Access Logs",
      updateDevice: "Update Device",
      currentVersion: "Device is up to date",
      deviceFreeSpace: "Free Space",
    },
    factoryTestView: {
      title: "Factory Test",
      calibration: "Camera Calibration",
      appMode: "APP Mode",
    },
    localUserView: {
      title: "Local Users",
      empty: "No Users Added",
      add: "Add User",
      sync: "Sync to Mini Program",
      search: "Search by Name or ID",
      searchBtn: "Search",
      edit: "Edit",
      attention: "Notice",
      attentionContent:
        "1. Local user data will be synced to the Mini Program approval list. After successful sync, local user data will be cleared.\n2. As an admin, you can approve synced users in the Mini Program. Once approved and required fields are completed, users will have access to all organization devices.\nThis action cannot be undone. Continue?",
      tip: "Note",
      tipContent: "Please connect to network first",
    },
    recordQueryView: {
      title: "Access Logs",
      code: "User ID",
      time: "Time",
      result: "Result",
      stranger: "Unknown",
      face: "Face",
      card: "Card",
      password: "Password",
      success: "Granted",
      fail: "Denied",
    },
    recordQueryDetailView: {
      title: "Access Log Details",
      id: "User ID",
      name: "Name",
      idCard: "ID Number",
      time: "Access Time",
      result: "Result",
      face: "Face Photo",
    },
    voiceBroadcastView: {
      title: "Voice Settings",
      save: "Save",
      strangerVoice: "Stranger Alert",
      voiceMode: "Voice Mode",
      volume: "Volume",
      success: "Saved",
      fail: "Save Failed",
    },
    confirm: {
      ok: "OK",
      no: "Cancel",
      upgrade: "Update Device",
      upgrading: "Updating...",
      upgradeSuccess: "Update Complete",
      upgradeFail: "Update Failed",
      cloudCertActive: "Activate Certificate",
      cloudCertActiveSuccess: "Activate Success",
      cloudCertActiveFail: "Activate Failed",
      restartDevice: "Restart Device",
      restartDeviceDis: "Configuration updated, device will restart",
    },
    localUserAddView: {
      title: "Add User",
      title2: "Edit User",
      save: "Save",
      id: "ID",
      name: "Name",
      idCard: "ID Number",
      face: "Face ID",
      pwd: "Password",
      card: "Access Card",
      type: "User Type",
      input: "Enter",
      enter: "Add",
      generate: "Generate",
      edit: "Edit",
      reset: "Reset",
      confirm: "Confirm",
      confirmDelete: "Confirm Delete",
      confirmDeleteContent: "Delete this item?",
      confirmFace: "Delete Face ID?",
      confirmPwd: "Delete Password?",
      confirmCard: "Delete Access Card?",
      pwdBoxLbl: "Generating...",
      pwdBoxSaveBtnLbl: "Generate New",
      pwdBoxConfirmBtnLbl: "OK",
      cardBoxResetBtnLbl: "Reset",
      cardBoxSaveBtnLbl: "Save",
      cardBoxLbl: "Reading Card...",
      cardBoxInput: "Enter Card Number",
      delete: "Delete",
      success: "Success",
      fail: "Failed",
      requiredInfo: "Required Fields Missing",
      preview: "Preview",
      failRepeat: "ID Already Exists",
      failSimilarity: "Face Too Similar",
      failCardRepeat: "Card Already Exists",
      failPwdRepeat: "Password Already Exists",
    },
    faceEnterView: {
      title: "Face Enrollment",
      faceAdd: "Look at Camera",
      recogFace: "Face Detected",
      recogSuccess: "Enrollment Complete",
      faceError: "No Face Detected",
    },
    calibrationView: {
      firstCalibration: "Initial Calibration",
      secondCalibration: "Secondary Calibration"
    },
    faceService: {
      contrastFailure: "Comparison Failed",
      scalingFailure: "Scaling Failed",
      failedToSavePicture: "Failed to Save Image",
      convertToBase64Failed: "Base64 Conversion Failed",
      base64DecodingFailed: "Base64 Decode Failed",
      similarityOverheight: "Face Too Similar",
      fileDoesNotExist: "File Not Found",
      theImageFormatIsNotSupported: "Unsupported Image Format",
      pictureReadFailure: "Failed to Read Image",
      thePictureSizeDoesNotMatch: "the picture size does not match",
      imageParsingFailure: "image parsing failure",
      imageYUVProcessingFailed: "image yuv processing failed",
      failedToConvertJpegToImage: "failed to convert jpeg to image",
      faceInformationExtractionFailed: "face information extraction failed",
      theFaceIsNotUnique: "the face is not unique",
    }
  },
};

export default messages;
